import request from '@/utils/request'

// 查询用户优惠券领取信息列表
export function listCouponDetail(query) {
  return request({
    url: '/prod-api/activity/couponDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户优惠券领取信息详细
export function getCouponDetail(detailUid) {
  return request({
    url: '/prod-api/activity/couponDetail/' + detailUid,
    method: 'get'
  })
}

// 新增用户优惠券领取信息
export function addCouponDetail(data) {
  return request({
    url: '/prod-api/activity/couponDetail',
    method: 'post',
    data: data
  })
}

// 修改用户优惠券领取信息
export function updateCouponDetail(data) {
  return request({
    url: '/prod-api/activity/couponDetail',
    method: 'put',
    data: data
  })
}

// 删除用户优惠券领取信息
export function delCouponDetail(detailUid) {
  return request({
    url: '/prod-api/activity/couponDetail/' + detailUid,
    method: 'delete'
  })
}
